package com.lhf.aicloud.utils;

/**
 * @author: lhf
 * @date: Created in 2024/08/15
 * @description: 全局变量
 */
public class AppVariable {

    /**
     * 讨论表点赞 Topic 名称
     */
    public static final String DISCUSS_SUPPORT_TOPIC = "DISCUSS_SUPPORT_TOPIC";
    /**
     * 每页大小
     */
    public static final long PAGE_SIZE = 5;

    /**
     * 大模型调用分布式锁 key
     */
    public static String getModelLockKey(Long uid, int model, int type) {
        return "MODEL_LOCK_KEY_" + uid + "_" + model + "_" + type;
    }

    /**
     * 列表缓存Key
     */
    public static String getListCacheKey(Long uid, int model, int type) {
        return "LIST_CACHE_KEY_" + uid + "_" + model + "_" + type;
    }
}
